package cn.luowb.checkchat.controller;

import cn.luowb.checkchat.common.result.Result;
import cn.luowb.checkchat.dto.resp.UserRespDTO;
import cn.luowb.checkchat.service.FollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class FollowController {
    @Autowired
    private FollowService followService;
    @GetMapping("/follow/fan/{id}")
    public Result<UserRespDTO> getFanList(@PathVariable("id") Long userId){

        return followService.getFanList(userId);
    }
}
